package com.zxf.appliction.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import com.zxf.appliction.domain.Params;
import com.zxf.appliction.domain.Users;



public interface UsersMapper {
    int deleteByPrimaryKey(Integer userid);

	int insert(Users record);

	int insertSelective(Users record);

	Users selectByPrimaryKey(Integer userid);

	int updateByPrimaryKeySelective(Users record);

	int updateByPrimaryKey(Users record);

	List getUserList();
	Map<String, Object> getUserList2();
    //使用@param的方式传参数
	Map<String, Object> getUserList3(@Param("pagenum") int pagenum, @Param("numbers")int numbers);

	Map<String, Object> getUserList3(Map<String, Object> arguMap);

	List getUserList3(Params pams);

	int gettotle();
//登录
	Users selectusers(Users users);

	Users getUser(long id);

	//添加用户到redis
	boolean add(Users users);
}